package com.example.demo.mapper;

import com.example.demo.entity.AdminLog;
import com.example.demo.entity.Log;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface LogMapper {

    @Select("SELECT * FROM log_tb WHERE user_id = #{userId}")
    List<Log> selectLogsByUserId(@Param("userId") int userId);
}
